/**
 * @Author: Your name
 * @Date:   2023-02-09 14:54:56
 * @Last Modified by:   Your name
 * @Last Modified time: 2023-02-27 12:02:42
 */
const crypto = require('crypto');


module.exports = {
    md5: (str)=>{
        return crypto.createHash('md5').update(str).digest('hex');
    },
    sha1: (str)=>{
        return crypto.createHash('sha1').update(str).digest('hex');
    }
}